package indi.kider.server.apartment.model;

import indi.kider.common.model.apabus.Rent;
import lombok.Data;

import java.util.Date;

/**
 * Created by shixj on 2018/5/17.
 */
@Data
public class HousesCommunityVO extends Rent{
    private HouseRent houseRent=new HouseRent();
    private Rent rent=new Rent();
    private Long hHouseId;
    private Integer releaseState;//发布状态
    private String hHouseNumb;//门牌号
    private Float hPriceSet;//租金
    private Integer hSetLease;//租金缴纳单位（1天，2月，3季，4年）
    private String hArea;
    private String hHeading;
    private Integer hCnt1;
    private Integer hCnt2;
    private Integer hState;//状态
    private Float hDeposit;//押金
    private Float hNetCost;//网费
    private Float hPropertyCosts;
    private Float hPowerCost;
    private Float hWaterCost;
    private Float hGasCost;
    private Integer manSize;
    private Integer womanSize;

    public void setManSize(Integer manSize) {
        manSize=manSize==null?0:manSize;
        this.manSize = manSize;
    }

    public void setWomanSize(Integer womanSize) {
        womanSize=womanSize==null?0:womanSize;
        this.womanSize = womanSize;
    }

    public void sethHouseId(Long hHouseId) {
        this.hHouseId = hHouseId;
        this.houseRent.setHouseId(hHouseId);
    }

    public void sethHouseNumb(String hHouseNumb) {
        this.hHouseNumb = hHouseNumb;
        this.houseRent.setHouseNumb(hHouseNumb);
    }

    public void sethDeposit(Float hDeposit) {
        this.hDeposit = hDeposit;
        this.houseRent.setDeposit(hDeposit);
    }

    public void sethNetCost(Float hNetCost) {
        this.hNetCost = hNetCost;
        this.houseRent.setNetCost(hNetCost);
    }

    public void sethPropertyCosts(Float hPropertyCosts) {
        this.hPropertyCosts = hPropertyCosts;
        this.houseRent.setPropertyCosts(hPropertyCosts);
    }

    public void sethPowerCost(Float hPowerCost) {
        this.hPowerCost = hPowerCost;
        this.houseRent.setPowerCost(hPowerCost);
    }

    public void setReleaseState(Integer releaseState) {
        this.releaseState = releaseState;
        this.houseRent.setReleaseState(releaseState);
    }

    public void sethWaterCost(Float hWaterCost) {
        this.hWaterCost = hWaterCost;
        this.houseRent.setWaterCost(hWaterCost);
    }

    public void sethGasCost(Float hGasCost) {
        this.hGasCost = hGasCost;
        this.houseRent.setGasCost(hGasCost);
    }



    public void sethState(Integer hState) {
        this.hState = hState;
        this.houseRent.setState(hState);
    }


    @Override
    public void setProfessional(String professional) {
        super.setProfessional(professional);
        this.rent.setProfessional(professional);
    }

    @Override
    public void setNationality(String nationality) {
        super.setNationality(nationality);
        this.rent.setNationality(nationality);
    }

    @Override
    public void setGasCost(Float gasCost) {
        super.setGasCost(gasCost);
        this.rent.setGasCost(gasCost);
    }

    @Override
    public void setWaterCost(Float waterCost) {
        super.setWaterCost(waterCost);
        this.rent.setWaterCost(waterCost);
    }

    @Override
    public void setPowerCost(Float powerCost) {
        super.setPowerCost(powerCost);
        this.rent.setPowerCost(powerCost);
    }

    @Override
    public void setPropertyCosts(Float propertyCosts) {
        super.setPropertyCosts(propertyCosts);
        this.rent.setPropertyCosts(propertyCosts);
    }

    @Override
    public void setNetCost(Float netCost) {
        super.setNetCost(netCost);
        this.rent.setNetCost(netCost);
    }

    @Override
    public void setCardId(String cardId) {
        super.setCardId(cardId);
        this.rent.setCardId(cardId);
    }

    /**
     * 微信openID
     *
     * @param wxopenId
     */
    @Override
    public void setWxopenId(String wxopenId) {
        super.setWxopenId(wxopenId);
        this.rent.setWxopenId(wxopenId);
    }

//    @Override
//    public int updateBillDate(Long id, Date lastDate) {
//        super.setId(id);
//        this.rent.setId(id);
//    }

    @Override
    public void setHousesId(Long housesId) {
        super.setHousesId(housesId);
        this.rent.setHousesId(housesId);
    }

    @Override
    public void setCommunityId(Long communityId) {
        super.setCommunityId(communityId);
        this.rent.setCommunityId(communityId);
    }

    @Override
    public void setTenantId(Long tenantId) {
        super.setTenantId(tenantId);
        this.rent.setTenantId(tenantId);
    }

    /**
     * 租房日期
     *
     * @param rentDate
     */
    @Override
    public void setRentDate(Date rentDate) {
        super.setRentDate(rentDate);
        this.rent.setRentDate(rentDate);
    }

    /**
     * 租房状态（1租住，2到期，3搬离）
     *
     * @param state
     */
    @Override
    public void setState(Integer state) {
        super.setState(state);
        this.rent.setState(state);
    }

    @Override
    public void setRemark(String remark) {
        super.setRemark(remark);
        this.rent.setRemark(remark);
    }

    /**
     * 租金
     *
     * @param priceSet
     */
    @Override
    public void setPriceSet(Float priceSet) {
        super.setPriceSet(priceSet);
        this.rent.setPriceSet(priceSet);
    }

    /**
     * 租期
     *
     * @param setLease
     */
    @Override
    public void setSetLease(Integer setLease) {
        super.setSetLease(setLease);
        this.rent.setSetLease(setLease);
    }

    /**
     * 租期类型
     *
     * @param leaseType
     */
    @Override
    public void setLeaseType(String leaseType) {
        super.setLeaseType(leaseType);
        this.rent.setLeaseType(leaseType);
    }

    /**
     * 押金
     *
     * @param deposit
     */
    @Override
    public void setDeposit(Float deposit) {
        super.setDeposit(deposit);
        this.rent.setDeposit(deposit);
    }

    /**
     * 押金退还说明
     *
     * @param depositRemark
     */
    @Override
    public void setDepositRemark(String depositRemark) {
        super.setDepositRemark(depositRemark);
        this.rent.setDepositRemark(depositRemark);
    }



    /**
     * 水表初始读数
     *
     * @param initWaterReading
     */
    @Override
    public void setInitWaterReading(Float initWaterReading) {
        super.setInitWaterReading(initWaterReading);
        this.rent.setInitWaterReading(initWaterReading);
    }

    /**
     * 电表初始读数
     *
     * @param initPowerReading
     */
    @Override
    public void setInitPowerReading(Float initPowerReading) {
        super.setInitPowerReading(initPowerReading);
        this.rent.setInitPowerReading(initPowerReading);
    }


    /**
     * 到期日期
     *
     * @param expireDate
     */
    @Override
    public void setExpireDate(Date expireDate) {
        super.setExpireDate(expireDate);
        this.rent.setExpireDate(expireDate);
    }

    @Override
    public void setFriendsSize(Integer friendsSize) {
        super.setFriendsSize(friendsSize);
        this.rent.setFriendsSize(friendsSize);
    }

    /**
     * 租房人姓名
     *
     * @param tenantName
     */
    @Override
    public void setTenantName(String tenantName) {
        super.setTenantName(tenantName);
        this.rent.setTenantName(tenantName);
    }

    /**
     * 租房人电话
     *
     * @param tenantTel
     */
    @Override
    public void setTenantTel(String tenantTel) {
        super.setTenantTel(tenantTel);
        this.rent.setTenantTel(tenantTel);
    }

    /**
     * 门牌号
     *
     * @param houseNumb
     */
    @Override
    public void setHouseNumb(String houseNumb) {
        super.setHouseNumb(houseNumb);
        this.rent.setHouseNumb(houseNumb);
    }

    /**
     * 楼幢
     *
     * @param building
     */
    @Override
    public void setBuilding(String building) {
        super.setBuilding(building);
        this.rent.setBuilding(building);
    }

    /**
     * 单元
     *
     * @param unit
     */
    @Override
    public void setUnit(String unit) {
        super.setUnit(unit);
        this.rent.setUnit(unit);
    }

    /**
     * 小区地址
     *
     * @param address
     */
    @Override
    public void setAddress(String address) {
        super.setAddress(address);
        this.rent.setAddress(address);
    }

    /**
     * 小区
     *
     * @param community
     */
    @Override
    public void setCommunity(String community) {
        super.setCommunity(community);
        this.rent.setCommunity(community);
    }
}
